// pages/myTeam/myTeam.js
Page({
    /**
     * 页面的初始数据
     */
    data: {
        teamNum: '', //团队人数
        teamYj: '', //团队业绩
        list:[],
    },

    onLoad(options) {
        if (options) {
            this.request({
                url: 'user/my/team/index',
                method: 'POST',
                data: {
                    password: options.pwd,
                    page: 1,
                    limit: 999,
                },
            }).then(res => {
                console.log(res);
                this.setData({
                    teamNum: res.data.teamNum,
                    teamYj: res.data.teamYj,
                    list: res.data.data,
                });
            });
        }
    },
});